package com.crm.service.impl;

import com.crm.dao.CusDevPlanDao;
import com.crm.entity.CusDevPlan;
import com.crm.service.CusDevPlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 客户开发计划Service实现类
 * @author Administrator
 *
 */
@Service("cusDevPlanService")
public class CusDevPlanServiceImpl implements CusDevPlanService {

    @Resource
    private CusDevPlanDao cusDevPlanDao;

    @Override
    public List<CusDevPlan> find(Map<String, Object> map) {
        return cusDevPlanDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return cusDevPlanDao.getTotal(map);
    }

    @Override
    public int update(CusDevPlan cusDevPlan) {
        return cusDevPlanDao.update(cusDevPlan);
    }

    @Override
    public int add(CusDevPlan cusDevPlan) {
        return cusDevPlanDao.add(cusDevPlan);
    }

    @Override
    public int delete(Integer id) {
        return cusDevPlanDao.delete(id);
    }
}
